home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Muzyka
/
Edytory sampli (probek dzwieku)
/
ZynAddSubFX_2.2.0
/
Setup_ZynAddSubFX-2.2.0.exe
/
source code
/
Makefile
< prev
next >
Wrap
Makefile
|
2005-03-13
|
2KB
|
118 lines
include Makefile.inc
ifneq ($(MAKECMDGOALS),debug)
CXXFLAGS= -O6 -Wall
else
CXXFLAGS= -O0 -Wall -Wpointer-arith -Wstrict-prototypes
endif
CXXFLAGS += -DOS_$(OS_PORT) -D$(MIDIIN)MIDIIN -DFFTW_VERSION_$(FFTW_VERSION) -DASM_F2I_$(ASM_F2I) `fltk-config --cflags`
ifeq ($(AUDIOOUT),OSS_AND_JACK)
CXXFLAGS += -DOSSAUDIOOUT -DJACKAUDIOOUT
else
CXXFLAGS += -D$(AUDIOOUT)AUDIOOUT
endif
export CXXFLAGS
LIBS= -lm `fltk-config --ldflags` -lmxml -lz
ifeq ($(FFTW_VERSION),2)
LIBS += -lrfftw -lfftw
else
LIBS += -lfftw3
endif
ifeq ($(OS_PORT),LINUX)
LIBS+= -lpthread
else
#dynamic linking
#LIBS+= -lpthreadGC
#static linking
LIBS+= /usr/lib/libpthreadGC1.a
endif
ifeq ($(MIDIIN),ALSA)
LIBS+= -lasound
endif
ifeq ($(AUDIOOUT),PA)
LIBS+= -lportaudio
endif
ifeq ($(OS_PORT),WINDOWS)
LIBS+= -lwinmm
endif
ifeq ($(AUDIOOUT),OSS_AND_JACK)
CXXFLAGS += `pkg-config --cflags jack`
LIBS+= `pkg-config --libs jack`
endif
ifeq ($(AUDIOOUT),JACK)
CXXFLAGS += `pkg-config --cflags jack`
LIBS+= `pkg-config --libs jack`
endif
ifeq ($(AUDIOOUT),JACK_RT)
CXXFLAGS += `pkg-config --cflags jack`
LIBS+= `pkg-config --libs jack`
endif
objects=main.o
SUBDIRS=DSP Effects Input Misc Output Params Synth Seq
.PHONY: subdirs $(SUBDIRS)
all:
# yes " " | head
$(MAKE) -C UI $@
# @sh -c "cd UI ; $(CXX) -MM -MG -w *.cc >> ../Make.deps ; cd .."
@for name in $(SUBDIRS); do sh -c "cd $$name ; $(CXX) -MM -MG -w *.C >> ../Make.deps ; cd .."; done
$(MAKE) subdirs
$(MAKE) objs
rm -f zynaddsubfx zynaddsubfx.exe
rm -f Make.deps
ifeq ($(AUDIOOUT),DSSI)
gcc -shared -o zynaddsubfx.so */*.o *.o $(LIBS)
else
ifeq ($(AUDIOOUT),VST)
gcc -shared -o zynaddsubfx_vst.dll */*.o *.o ../../vstsdk2/source/common/AudioEffect.cpp ../../vstsdk2/source/common/audioeffectx.cpp $(LIBS) zynaddsubfx_gcc.def
else
ifeq ($(OS_PORT),LINUX)
$(CXX) -o zynaddsubfx */*.o *.o $(LIBS)
else
$(CXX) -o zynaddsubfx.exe */*.o *.o $(LIBS)
endif
endif
endif
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
objs:$(objects)
debug: all
main.o:Misc/Master.h Misc/Util.h Output/OSSaudiooutput.h\
Input/OSSMidiIn.h Input/ALSAMidiIn.h \
UI/MasterUI.h
.PHONY : clean
clean:
rm -f $(objects) zynaddsubfx zynaddsubfx_vst.dll zynaddsubfx.exe zynaddsubfx.so
@for name in $(SUBDIRS); do sh -c "make -C $$name $@"; done
rm -f Make.deps
rm -f */*.o *.o
$(MAKE) -C UI $@